<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>系统首页</title>
    <link rel="stylesheet" href="{$CSS}/bootstrap3.3.7.min.css">
    <style>
        td,th{
			text-align: center;vertical-align: middle !important;
			}
        .paging{
           list-style:none;
           display:inline ;
           padding-left:2px    
        }
/*
        .paging:after{
            content:"";
            clear: both
        }
*/
        .paging li{
            display:inline-block
        }
        .paging a{
            padding:5px 10px;
            border: 1px solid #ddd;
            margin-left: -1px;
            text-decoration: none;
        }
        .active{
            border-color: #337ab7 !important;
        }
    </style>
</head>

<body>
    {if $agency->message_td!=2}<div style="padding:10px;border-bottom:1px solid #eee;font-size:15px;font-weight:700">官方通道短信余额：{$smsNum}条</div>{/if}
    <div style="padding:20px">
        <div style="margin-top:15px">
            <table class="table table-bordered table-hover">
			 <span>短信发送记录：</span>
              <thead>
                <tr>
                  <th>发送时间</th>
                  <th>收信人</th>
                  <th>内容</th>
                  <th>发送状态</th>
                  <th>返回码</th>
                </tr>
              </thead>
              <tbody>
			{loop $res as $r}
                <tr>
                  <td>{date("Y-m-d H:i:s",$r->ctime)}</td>
                  <td>{$r->tel}</td>
                  <td>{$r->content}</td>
                  <td>
				  {if $r->status==1}
				  成功
				  {else}
				  失败
				  {/if}
				  </td>
                  <td>{$r->return_code}</td>
                </tr>
			{/loop}
              </tbody>
            </table>
        </div>
        <div>
            <div style="display: inline-block">
                <span>{$p->totalnum}条/{$p->totalpage}页</span> 
            </div>
			<ul class="paging">
           {P weidogsadmin}
			</ul>
        </div>
    </div>
</body>
</html>